package nl.bluemango.mangotimer.delegate
{
	public class ProjectHTML{
		private var h:String
		
		public function ProjectHTML(html:String){
			h = html
		}
		
		public function get name():String{
			var s:String = getBetween('<input name="short_desc" type="text" id="short_desc" class="txt" size="80" maxlength="80" value="','" />');
			return s;
		}
		
		public function get number():String{
			var s:String
			return s;
		}
		
		public function get client():String{
			var s:String
			return s;
		}
		
		private function getBetween(s1:String, s2:String):String {
			return h.split(s1)[1].split(s2)[0]
		}
		
		private function getBetweenIn(html:String, s1:String, s2:String):String {
			return h.split(s1)[1].split(s2)[0]
		}
	}
}